package com.hedl.practice.diyJava.regexs.study_complex_matching_rules.practice;

public class Main {
    static String re1 = "name\\s((J|j)ava|(p|P)hp|(H|h)del)";

    public static void main(String[] args) {
        System.out.println("name Java".matches(re1));
        System.out.println("name Php".matches(re1));
        System.out.println("name Hdel".matches(re1));
        System.out.println("name java".matches(re1));
    }
}
